package com.cssy.yd.logic.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import com.byd.acegiext.domain.User;
import com.cssy.yd.logic.dao.LogicPoWareItemBatchDAO;
import com.cssy.yd.logic.entity.LogicPoWareDO;
import com.cssy.yd.logic.entity.LogicPoWareItemBatchDO;
import com.cssy.yd.logic.service.ILogicPoWareItemBatchService;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;

@Service("logicPoWareItemBatchService")
public class LogicPoWareItemBatchServiceImpl implements
		ILogicPoWareItemBatchService {
	
	@Resource(name="logicPoWareItemBatchDAO")
	private LogicPoWareItemBatchDAO logicPoWareItemBatchDAO;
	
	
	@Override
	public SearchResult findListByExample(SearchConditions scs)
			throws SyBaseException {
		SearchResult rs=new SearchResult(scs);
		List<LogicPoWareItemBatchDO>  list=logicPoWareItemBatchDAO.find(scs);
		rs.setRecordCount(logicPoWareItemBatchDAO.count(scs));
		rs.setResults(list);
		return rs;
	}

	@Override
	public Integer delete(String id, User user) throws SyBaseException {
		Integer i =logicPoWareItemBatchDAO.deleteLogicPoWareItemBatchDOByPrimaryKey(id);
		return i;
	}

	@Override
	public Integer update(LogicPoWareItemBatchDO t, User user)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LogicPoWareItemBatchDO save(LogicPoWareItemBatchDO t, User user)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public LogicPoWareItemBatchDO findListById(String id)
			throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<LogicPoWareItemBatchDO> findListByExample(
			LogicPoWareItemBatchDO logiItemBatchDO) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer deleteBizRemoved(String id) throws SyBaseException {
		// TODO Auto-generated method stub
		return null;
	}

}
